package com.example.demo.utils.pay;


import org.springframework.stereotype.Component;

import java.io.InputStream;


@Component
public class MyWXPayConfig implements com.github.wxpay.sdk.WXPayConfig {

	private PayBean.Wx wx;

	private PayBean payBean;

	public MyWXPayConfig(PayBean payBean) {
		this.payBean = payBean;
		this.wx = payBean.getWx();
	}

	@Override
	public String getAppID() {
		return wx.getAppId();
	}

	@Override
	public String getMchID() {
		return wx.getMchId();
	}

	@Override
	public String getKey() {
		return wx.getKey();
	}

	@Override
	public InputStream getCertStream() {
		return null;
	}

	@Override
	public int getHttpConnectTimeoutMs() {
		return 0;
	}

	@Override
	public int getHttpReadTimeoutMs() {
		return 0;
	}
}
